//
//  HXQiYeLocaleJobTableViewCell.m
//  KD
//
//  Created by 梅洋 on 16/7/28.
//  Copyright © 2016年 Whx. All rights reserved.
//

#import "HXQiYeLocaleJobTableViewCell.h"

@interface HXQiYeLocaleJobTableViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@property (weak, nonatomic) IBOutlet UIView *bgImgView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *companyNameLaelConstraint;


@end

@implementation HXQiYeLocaleJobTableViewCell

-(instancetype)init{

    if ([super init]) {
        
        self = [[[NSBundle mainBundle] loadNibNamed:@"HXQiYeLocaleJobTableViewCell" owner:nil options:nil] objectAtIndex:0];
    }
    
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    _bgImgView.layer.cornerRadius = 27.f;
}

-(void)setResultModel:(HXGetCorpTaskResultListModel *)resultModel{

    _resultModel = resultModel;
    //图片
    //名称
    _companyNameLaelConstraint.constant = [_resultModel.SiteName heightWithFont:[UIFont systemFontOfSize:17] withinWidth:_companyLabel.right-_companyLabel.left];
    _companyLabel.text = _resultModel.SiteName;
    
    //检查人员
    _checkPeopleLabel.text = _resultModel.GroupName;
    
    //时间
    _dateTimeLabel.text = _resultModel.CreateDate;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
